package module.model;

import common.model.BaseModel;
import org.hibernate.annotations.Proxy;

import javax.persistence.*;
import java.util.Date;

/**
 * 评估分级
 */
@Entity
@Table(name = "assessment_grading")
@Proxy(lazy = false)
@SqlResultSetMappings(value = { @SqlResultSetMapping(name = "AssessmentGradingModelMapping", entities = { @EntityResult(entityClass = AssessmentGradingModel.class) }) })
public class AssessmentGradingModel extends BaseModel {
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Column(name = "GRADING_ID")
    private Long gradingId;

    @Column(name = "GRADING_NAME")
    private String gradingName;

    @Column(name = "BEGIN_VALUE")
    private Integer beginValue;

    @Column(name = "END_VALUE")
    private Integer endValue;

    @Column(name = "GRADING_TYPE")
    private Integer gradingType;//分级类型，1表单，2资料

    @Column(name = "OBJ_ID")
    private Long objId;//对象ID

    @Column(name = "CREATE_TIME")
    private Date createDate;

    @Column(name = "CREATE_USER_ID")
    private Long createUserId;

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Long getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(Long createUserId) {
        this.createUserId = createUserId;
    }

    public Long getGradingId() {
        return gradingId;
    }

    public void setGradingId(Long gradingId) {
        this.gradingId = gradingId;
    }

    public String getGradingName() {
        return gradingName;
    }

    public void setGradingName(String gradingName) {
        this.gradingName = gradingName;
    }

    public Integer getBeginValue() {
        return beginValue;
    }

    public void setBeginValue(Integer beginValue) {
        this.beginValue = beginValue;
    }

    public Integer getEndValue() {
        return endValue;
    }

    public void setEndValue(Integer endValue) {
        this.endValue = endValue;
    }

    public Integer getGradingType() {
        return gradingType;
    }

    public void setGradingType(Integer gradingType) {
        this.gradingType = gradingType;
    }

    public Long getObjId() {
        return objId;
    }

    public void setObjId(Long objId) {
        this.objId = objId;
    }
}
